const express = require('express')
const path = require('path')

const app = express()
const bookRouter = require('./routes/book')

// view engine setup
app.set('views', path.join(__dirname, 'views'))
app.set('view engine', 'jade')

app.use(express.static(path.join(__dirname, 'public')))

app.use('/book', bookRouter)

app.listen(3000)
